﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Custom.Controls
{
    public partial class CoverForm : Form
    {
        public CoverForm()
        {
            InitializeComponent();

            this.SetFormMax(this);
        }

        /// <summary>
        /// 设置窗体最大化（不遮挡任务栏）显示全屏
        /// </summary>
        /// <param name="frm"></param>
        public virtual void SetFormMax(Form frm)
        {
            this.MaximumSize = new System.Drawing.Size(Screen.PrimaryScreen.WorkingArea.Width + 10, Screen.PrimaryScreen.WorkingArea.Height + 1);
        }
    }
}
